<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增机构接口配置')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-updateAgentInfo">
        <input name="agentNum" type="hidden" th:value="${agentNum}">
        <div class="form-group">
            <label class="col-sm-3 control-label  is-required">服务商编号：</label>
            <div class="col-sm-8">
                <input name="deductObject" onclick="selectAgent()" readonly id="xagentNum" th:value="${deductObject}" type="text" class="form-control" required>
                <i class="fa fa-search" style="margin-top: -22px;margin-right:3px;float:right;"></i>
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
  var prefix = ctx + "agentInfo/agentInfo"
  $("#form-sendAgentInfo").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/updateAgent", $('#form-updateAgentInfo').serialize());
    }
  }

  /**
   * 前往查找带回页面
   */
  function selectAgent() {
    var url =prefix+ "/lookSendAgentInfo";
    $.modal.open("正式服务商列表" , url, '830',"450");
  }
</script>
</body>
</html>
